<?php

class Form_AdminForm extends Form_Custom_General {

    public function init() {

        $lgn_id = $this->createElement('hidden', 'lgn_id')
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                ))
                ->setAttribs(Array("size" => "60"));
        $this->addElement($lgn_id);
        
        
        $lgn_email = $this->createElement('text', 'lgn_email')
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                    new Zend_Filter_StringToLower()
                ))
                ->setAttribs(Array("size" => "60","class"=>"span6", "readonly" => "readonly"));
        $this->addElement($lgn_email);


        $lgn_password = $this->createElement('password', 'lgn_password')
               # ->setRequired(TRUE)
               # ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Password should not be blank.')))
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                ))
                ->setAttribs(Array("size" => "20","class"=>"span6"));
        $this->addElement($lgn_password);

        
        $lgn_confirmpassword = $this->createElement('password', 'lgn_confirmpassword')
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                ))
               # ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("admin_required_password"))))
                ->setAttribs(Array("size" => "20","class"=>"span6"));
        $this->addElement($lgn_confirmpassword);

        $submit = $this->createElement('submit', 'Save')
                ->setAttribs(Array('title' => "Save changes", 'class'=>"btn-glow primary"));
        $this->addElement($submit);


        $reset = $this->createElement('reset', 'Reset')
                ->setAttribs(Array('title' => "Save changes and continue to edit", 'class'=>"btn-glow primary"));
        $this->addElement($reset);
    }

}